import BaseActionCableConnector from './BaseActionCableConnector'

class ActionCableConnector extends BaseActionCableConnector {
  constructor (app, pubsubToken) {
    super(app, pubsubToken)
    this.CancelTyping = []
    this.events = {
      'message.created': this.onMessageCreated
    }
  }

  onMessageCreated = data => {
    console.log(data)
  }
}

// export default ActionCableConnector

export const createActionCable = (app, pubsubToken) => {
  return new ActionCableConnector(app, pubsubToken)
}
